/**
  ******************************************************************************
  * @brief        STM32F103 BootLoader
  *
  * Copyright (c) 2021, <1148138800@qq.com>
  *
  * SPDX-License-Identifier: Apache-2.0
  *
  * Change Logs: 
  * Date           Author       Notes 
  * 2021-09-21     zhangql      Initial version. 
******************************************************************************/


/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __UPDATE_H
#define __UPDATE_H

#ifdef __cplusplus
extern "C" {
#endif



#define APP1_ADDRESS           ((unsigned int)0x08001400U)
#define APP2_ADDRESS           ((unsigned int)0x08008800U)
	
#define APP_SELECT_ADDRESS     ((unsigned int)0x0800FC00U)


typedef  void (*pFunction)(void);



void Ctrl_Program_Jump(unsigned int app_address);
void Select_App_Address();

#endif

